"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = Example1;

var _react = _interopRequireDefault(require("react"));

var _design = require("@discuzq/design");

require("./index.scss");

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function Example1() {
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_design.Button, {
    onClick: function onClick() {
      return _design.Toast.info({
        content: "这是一段自定义文本提示内容",
        onClose: function onClose() {
          console.log("close");
        }
      });
    }
  }, "Info"), /*#__PURE__*/_react.default.createElement(_design.Button, {
    type: "primary",
    onClick: function onClick() {
      return _design.Toast.success({
        content: "这是一条成功提示"
      });
    }
  }, "Success"), /*#__PURE__*/_react.default.createElement(_design.Button, {
    type: "warn",
    onClick: function onClick() {
      return _design.Toast.warning({
        content: "这是一条警告提示"
      });
    }
  }, "Warning"), /*#__PURE__*/_react.default.createElement(_design.Button, {
    type: "danger",
    onClick: function onClick() {
      return _design.Toast.error({
        content: "这是一条异常提示"
      });
    }
  }, "Error"), /*#__PURE__*/_react.default.createElement(_design.Button, {
    onClick: function onClick() {
      return _design.Toast.loading({
        content: "加载中 ..."
      });
    }
  }, "Loading"));
}